using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Microsoft.VisualStudio.TestTools.UITesting;
using Microsoft.VisualStudio.TestTools.UITesting.HtmlControls;

namespace SpecFlowIntegrationTutorial.SampleDefinition
{
	[GeneratedCode("Coded UITest Helpers", "1.0.0.0")]
	public partial class UINamePage : BrowserWindow
	{
		public UINamePage(Uri pageUrl = null)
		{
			if (pageUrl == null)
				CopyFrom(BrowserWindow.Launch());
			else
				CopyFrom(BrowserWindow.Launch(pageUrl));
		}
		
		public UINamePage(Process process)
		{
			CopyFrom(BrowserWindow.FromProcess(process));
		}   

		private HtmlEdit mFirst;
		private HtmlEdit mSecond;
		private HtmlSpan mResult;
		private HtmlButton mCalculate;
		public HtmlEdit First
		{
			get
			{
				if (mFirst == null)
				{					
					mFirst = new HtmlEdit(this);
					mFirst.SearchProperties[HtmlDiv.PropertyNames.Id] = "first";
				}
				return mFirst;
			}
		}
		public HtmlEdit Second
		{
			get
			{
				if (mSecond == null)
				{					
					mSecond = new HtmlEdit(this);
					mSecond.SearchProperties[HtmlDiv.PropertyNames.Id] = "second";
				}
				return mSecond;
			}
		}
		public HtmlSpan Result
		{
			get
			{
				if (mResult == null)
				{					
					mResult = new HtmlSpan(this);
					mResult.SearchProperties[HtmlDiv.PropertyNames.Id] = "result";
				}
				return mResult;
			}
		}
		public HtmlButton Calculate
		{
			get
			{
				if (mCalculate == null)
				{					
					mCalculate = new HtmlButton(this);
					mCalculate.SearchProperties[HtmlDiv.PropertyNames.Id] = "calculate";
				}
				return mCalculate;
			}
		}
	}

}

